// 小说接口
import {getRequest,postRequest} from '@/utils/http.ts'

// 获取小说所有分类
export const GetNovelClass = (data) => {
	// return postRequest('/cate/distinct/level1/list')
	return getRequest(`/system/novelItem/list`,data)
}
// 获取分类下所有小说
export const GetNovelClassList = (id) => {
	return postRequest(`/item/category/${id}`)


}
// 获取小说详情
export const GetNovelInfo = (id) => {
	return getRequest(`/system/novelItem/${id}`)
}

// 阅读内容
export const readBooks = (data) => {
	return getRequest(`/system/novelItem/readtxt`, data)
}

// 图书分类
export const getCategoryList = (data) => {
	return getRequest(`/system/category/list`, data)
}


// 会员列表
export const getMembershipList = (data) => {
	return getRequest(`/system/card/list`, data)
}


// 购买
export const buyBooks = (data) => {
	return postRequest(`/system/novel/purchase`, data)
}